<?php
namespace Admin\Controller;
use Think\Controller;
use Admin\Controller\CommonController;
use Think\Auth;
class UserController extends CommonController {
    public function indexAction(){
       $this->display();
    }
    public function addAction()
    {
    	$auth= new Auth();  
		if(!$auth->check('xbsjiaoqian',1)){
			$this->error('你没权限，请交钱开通',U('admin/login/index'));
		}
    	$this->display();
    }

    public function putoutAction()
    {
        $sql = "select * from question";
        $res = M()->query($sql);
        ExcelOut($res);
    }
}